﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Tao.OpenGl;

namespace Clandestine
{
    public class Lights : Renderable
    {

        internal override void Render()
        {
            throw new NotImplementedException();
        }

        public void clearFramebufferAlpha()
        {
            Gl.glPushMatrix();
            Gl.glDisable(Gl.GL_DEPTH_TEST);



            Gl.glEnable(Gl.GL_DEPTH_TEST);
            Gl.glPopMatrix();
        }
    }

    public class Light
    {
        public Point Position { get; set; }
        public float Radius = 0f;
        public Color Color = Color.White;

        public float intensity = 0f;
        public float Intensity // 0 - 1
        {
            get { return intensity; }
            set
            {
                if ((value < 0f) || (value > 1f))
                    throw new ArgumentOutOfRangeException();
                else
                    intensity = value;
            }
        }


    }
}
